import { MockMethod } from "vite-plugin-mock";
const url = "/api/v1/menus/routes";
const method = "get";
const data = {
  code: "00000",
  data: [
    {
      path: "/financial",
      component: "Layout",
      meta: {
        title: "财务管理",
        hidden: false,
        roles: ["ADMIN"],
        keepAlive: true,
      },
      children: [
        {
          path: "index",
          component: "orders/index",
          name: "Finance",
          meta: {
            title: "财务管理",
            icon: "document",
            hidden: false,
            roles: ["ADMIN"],
            keepAlive: false,
          },
        },
      ],
    },
    {
      path: "/business",
      component: "Layout",
      meta: {
        title: "企业管理",
        hidden: false,
        roles: ["ADMIN"],
        keepAlive: true,
      },
      children: [
        {
          path: "index",
          component: "orders/index",
          name: "Business",
          meta: {
            title: "企业管理",
            icon: "system",
            hidden: false,
            roles: ["ADMIN"],
            keepAlive: false,
          },
        },
      ],
    },
    {
      path: "/merchants",
      component: "Layout",
      meta: {
        title: "商户和售货点",
        hidden: false,
        roles: ["ADMIN"],
        keepAlive: true,
      },
      children: [
        {
          path: "index",
          component: "orders/index",
          name: "Merchants",
          meta: {
            title: "商户和售货点",
            icon: "api",
            hidden: false,
            roles: ["ADMIN"],
            keepAlive: false,
          },
        },
      ],
    },
    {
      path: "/products",
      component: "Layout",
      meta: {
        title: "产品管理",
        hidden: false,
        roles: ["ADMIN"],
        keepAlive: true,
      },
      children: [
        {
          path: "index",
          component: "orders/index",
          name: "Products",
          meta: {
            title: "产品管理",
            icon: "dict",
            hidden: false,
            roles: ["ADMIN"],
            keepAlive: false,
          },
        },
      ],
    },
    {
      path: "/orders",
      component: "Layout",
      meta: {
        title: "订单管理",
        hidden: false,
        roles: ["ADMIN"],
        keepAlive: true,
      },
      children: [
        {
          path: "index",
          component: "orders/index",
          name: "Orders",
          meta: {
            title: "订单管理",
            icon: "document",
            hidden: false,
            roles: ["ADMIN"],
            keepAlive: false,
          },
        },
      ],
    },
    {
      path: "/members",
      component: "Layout",
      meta: {
        title: "管理会员",
        hidden: false,
        roles: ["ADMIN"],
        keepAlive: true,
      },
      children: [
        {
          path: "index",
          component: "orders/index",
          name: "Members",
          meta: {
            title: "管理会员",
            icon: "peoples",
            hidden: false,
            roles: ["ADMIN"],
            keepAlive: false,
          },
        },
      ],
    },
    {
      path: "/datasets",
      component: "Layout",
      meta: {
        title: "数据概括",
        hidden: false,
        roles: ["ADMIN"],
        keepAlive: true,
      },
      children: [
        {
          path: "index",
          component: "orders/index",
          name: "Datasets",
          meta: {
            title: "数据概括",
            icon: "tree",
            hidden: false,
            roles: ["ADMIN"],
            keepAlive: false,
          },
        },
      ],
    },
  ],
};

export default [
  {
    url: url,
    method: method,
    response: () => {
      return data;
    },
  },
] as MockMethod[];
